<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<script type="text/javascript" src="jsp/jquery-1.3.2.min.js"></script> 
<sj:head compressed="true"/>

<title>Insert title here</title>
</head>


<h2>Inserisci i tuoi dati</h2>
<s:div id="div1">
	<s:form action="RiepilogoInsert">
		<table>
			<tr>
				<td><s:textfield name="RegNome" label="NOME "></s:textfield> <s:textfield
						name="RegCognome" label="COGNOME "></s:textfield> <s:textfield
						name="RegTelefono" label="TELEFONO "></s:textfield> <s:textfield
						name="RegEmail" label="EMAIL "></s:textfield> <s:textfield
						name="Piva" label="P.IVA "></s:textfield>
	        
	          <s:url id="caricaStato" action="jsonRegione" ></s:url>
             <sj:select 
			           id="idregione"
			           name="idregione"
			           label="Regione "
			           href="%{caricaStato}"         
			           list="regioneDb"
			           listKey="idregione"
			           listValue="descrizione"
			           dataType="json"
			           emptyOption="true"
			           headerKey="-1"
			           value="id_regione"
			           formIds="idregione"
			           onChangeTopics="reloadProvincelist"
			           headerValue="--Selezionare una regione--"/>
			           
			       <s:url id="Province" action="jsonProvince" ></s:url>     
			           <sj:select 
			           id="idprovincia"
			           name="idprovincia"
			           label="Province"
			           href="%{Province}"         
			           list="provinciaDb"
			           listKey="idProvincia"
			           listValue="descrizione"
			           dataType="json"
			           emptyOption="true"
			           formIds="idregione"
			           reloadTopics="reloadProvincelist"
			           headerKey="-1"
			           headerValue="--Selezionare una provincia--"/>
						
						<s:textfield
						name="Comune" label="COMUNE "></s:textfield> <s:textfield
						name="Indirizzo" label="INDIRIZZO "></s:textfield> <s:textfield
						name="NomeAttivita" label="NOME ATTIVITA' "></s:textfield></td>
			</tr>
			<tr>
				<td><s:submit name="Riepilogo" value="AVANTI"></s:submit></td>
			</tr>
		</table>
	</s:form>
</s:div>



</html>